
class Tools {


    checkLogin(vm){

        let token = sessionStorage.getItem('token');
        if(!token){
            vm.$router.push('/login');
        }else{
            return true;
        }
        
    }



}

export default new Tools();